{extend name="common/base" /}
{block name="title"}活动商品编辑{/block}
{block name="main"}
<script type="text/javascript" src="/static/js/showdate.js"></script>

<script src="/ad/js/g_add/g_add_deta.js"></script>
     <!-- Navigation -->
	   <div id="page-wrapper">
        <div class="col-md-12 graphs">
		<div class="xs">
  	    <h3>活动商品编辑</h3>
  	    <div class="well1 white">
        <form class="form-floating" id="g_add_deta" novalidate="novalidate" action="{:url('Goods/dog_edit_activity')}" method ='post' enctype="multipart/form-data">
          <fieldset>
            <div class="form-group">
              <label class="control-label">活动标题</label>
              <input  type="text" name="goods_acitvity_title" class="form-control1" value="{$res['goods_acitvity_title']}" placeholder="请输入活动标题">
              <input type="hidden" name="goods_id" value="{$res['goods_id']}">
            </div>
            <div class="form-group">
              <label class="control-label">活动价格</label>
              <input name="goods_discounts" type="text" class="form-control1"  value="{$res['goods_discounts']}" placeholder="请输入优惠价格">
            </div>
            <div class="form-group">
              <label class="control-label">优惠信息</label>
              <input name="goods_reduced_title" type="text" class="form-control1"  value="{$res['goods_reduced_title']}" placeholder="请输入优惠信息">
            </div>
            <div class="form-group">
              <label class="control-label">开始时间</label>
              <input type="text" id="st" name="goods_start" onclick="return Calendar('st');" value="{$res['goods_start']|date='Y-m-d',###}" class="text form-control1" />
            </div>
            <div class="form-group">
              <label class="control-label">结束时间</label>
              <input type="text" id="et" onclick="return Calendar('et');" value="{$res['goods_end']|date='Y-m-d',###}" name="goods_end" class="form-control1" />
            </div>
            <div class="form-group">
              <label class="control-label">商品套餐</label>
              <select class="form-control1" name="goods_group">
                <option value="0" >无套餐</option>
                {volist name="combo" id="c"}
                <option value="{$c['combo_id']}" >{$c.combo_name}</option>
                {/volist}
              </select>
            </div>
            <div class="form-group">
              <label class="control-label">活动类型</label>
              <select class="form-control1" name="goods_group">
                {volist name="activity_t" id="at"}
                <option value="{$at['activity_type_id']}" >{$at.activity_type_name}</option>
                {/volist}
              </select>
            </div>
            <div class="form-group">
              <button type="button" class="btn btn-primary">下一步</button>
              <button type="reset" class="btn btn-default">重置</button>
            </div>
          </fieldset>
        </form>
      </div>
    </div>
		{/block}



